.product-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-content {
    display: flex;
    gap: 2rem;
}

/* 左侧样式 */
.product-left {
    flex: 1;
    max-width: 500px;
}

.product-image {
    width: 100%;
    margin-bottom: 2rem;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-comments {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-comments h3 {
    margin-bottom: 1rem;
    color: #333;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
}

/* 右侧样式 */
.product-right {
    flex: 1;
}

.product-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-info h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-price {
    margin: 1.5rem 0;
    font-size: 1.5rem;
}

.price-label {
    color: #666;
}

.price-value {
    color: #ff4d4f;
    font-weight: bold;
}

.product-description,
.product-specs,
.product-quantity {
    margin: 1.5rem 0;
}

.product-description h3,
.product-specs h3,
.product-quantity h3 {
    color: #333;
    margin-bottom: 1rem;
}

.specs-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.spec-option {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.spec-option:hover,
.spec-option.active {
    border-color: #007bff;
    color: #007bff;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-control input {
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

/* 渐变色大按钮风格 */
.product-actions {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255,152,0,0.08);
}
.buy-now-btn, .add-to-cart-btn {
    flex: 1 1 0;
    padding: 16px 0;
    font-size: 18px;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: #fff;
    border-radius: 0;
    box-shadow: none;
    letter-spacing: 1px;
}
.buy-now-btn {
    background: linear-gradient(90deg, #ff7300 0%, #ffb347 100%);
}
.add-to-cart-btn {
    background: linear-gradient(90deg, #ffd200 0%, #ff9800 100%);
}
.buy-now-btn:hover {
    background: linear-gradient(90deg, #ff5c00 0%, #ffa500 100%);
}
.add-to-cart-btn:hover {
    background: linear-gradient(90deg, #ffc300 0%, #ff8000 100%);
}

/* 评论样式 */
.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-user {
    font-weight: bold;
    color: #333;
}

.comment-date {
    color: #999;
    font-size: 0.9rem;
}

.comment-content {
    color: #666;
    line-height: 1.5;
} 

/* 购物车成功提示弹窗样式 */
.modal {
    display: flex;
    align-items: center; 
    justify-content: center;
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5);
}

.success-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    width: 80%;
    max-width: 300px; 
    text-align: center; 
}

.success-icon {
    font-size: 2.5rem; 
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.2rem;
    color: #333; 
    margin-bottom: 0.5rem; 
}

.coupon-tip {
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 1.5rem; 
}

.go-to-cart-btn {
    background-color: #ff9800; 
    color: white;
    padding: 10px 20px; 
    border: none;
    border-radius: 5px;
    cursor: pointer; 
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.go-to-cart-btn:hover {
    background-color: #f57c00;
} 